package com.hmdp.utils;

public interface ILock {

    /**
     * 获取分布式锁
     * @param timeoutSc
     * @return true:获取成功，false：获取失败
     */
    public boolean tryLock(long timeoutSc);

    /**
     * 释放分布式锁
     */
    public void unLock();
}
